$(function() {
    var id = location.search;
    // console.log(id);
    var brandtitleid = id.slice(4);
    console.log(brandtitleid);
    $.ajax({
        type: 'get',
        url: 'http://193.112.55.79:9090/api/getbrand',
        data: {
            brandtitleid: brandtitleid

        },
        dataType: 'json',
        success: function(res) {
            // console.log(res);
            var html = template("function_template", { arr: res.result });
            $(".function_main").html(html);
        }
    })
    console.log('456');

    $.ajax({
        type: 'get',
        url: 'http://193.112.55.79:9090/api/getbrandproductlist?brandtitleid=' + brandtitleid,
        data: {
            brandtitleid: brandtitleid,
            pagesize: 2
        },
        dataType: 'json',
        success: function(res) {
            console.log('123');

            console.log(res);
        }

    })


})